package android.longs.study.user.servlet;

import java.io.IOException;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import android.longs.study.base.HomeServlet;
import android.longs.study.user.service.UserServiceImple;
import android.longs.study.user.service.in.UserService;

@WebServlet("/user/alert/flag")
public class AlertUserFlagServlet extends HomeServlet{

    private UserService service = new UserServiceImple();
    @Override
    public void doRequestFunction(HttpServletRequest request,
	    HttpServletResponse response) {

	try {
	    
	    String loginFunction = service.alertUserFlagFunction(request);
	    System.out.println(loginFunction);
	    response.getWriter().write(loginFunction);
	} catch (Exception e) {
	    // TODO: handle exception
	    System.out.println("登录异常 "+e.getMessage());
	}

    }



}
